package com.chentf.behavioral.strategy.code.b;

/**
 * 具体策略实现类
 */
public class PercentageDiscountStrategy implements DiscountStrategy{
    @Override
    public double calculateDiscount(Order order) {
        // 10%折扣
        return order.getTotalAmount() * 0.10;
    }
}
